package com.lanbu.system.mapper;

import com.lanbu.system.domain.mongo.MongoOpenApis;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MongoOpenApisRepository extends MongoRepository<MongoOpenApis, String> {
    // 可以添加自定义查询方法
    List<MongoOpenApis> findByTmbId(ObjectId tmbId);

    MongoOpenApis findByApiKey(String apiKey);

    MongoOpenApis findByAppId(String appId);
}
